import {
  defineConfig,
  presetAttributify,
  presetIcons,
  presetTypography,
  presetUno,
  presetWebFonts,
  transformerDirectives,
  transformerVariantGroup,
} from 'unocss'

export default defineConfig({
  shortcuts: [
    { 'wh-full': 'w-full h-full' },
    { 'flex-center': 'flex items-center' },
    { 'flex-col': 'flex flex-col' },
    { 'flex-c-c': 'flex justify-center items-center' },
    // ...
  ],
  theme: {
    colors: {
      primary: 'var(--n-color-primary)',
      // ...
    },
  },
  presets: [
    presetUno(),
    presetAttributify(),
    presetIcons(),
    presetTypography(),
    presetWebFonts({
      fonts: {
        // ...
      },
    }),
  ],
  transformers: [transformerDirectives(), transformerVariantGroup()],
})
